﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="XmlSorter.WindowAttributesSelection"
	x:Name="Window"
	Title="Sorting Attributes"
    Closing="Window_Closing"
	Width="340" Height="400" MinWidth="340" MinHeight="400" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" Icon="/XmlSorter;component/XML.ico">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <ListBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" Name="ListBoxAttributes" VerticalAlignment="Stretch" Margin="5">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <CheckBox IsChecked="{Binding Path=Value, Mode=TwoWay}" Content="{Binding Key, Mode=OneWay}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button Name="ButtonOK" Content="Close" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Click="ButtonOK_Click" IsDefault="True" IsCancel="True" Margin="5"></Button>
    </Grid>
</Window>